/* *********
 *    Author: Jason He;
 *    Version: 0.0.1;
 *    Date: 2016-12-28;
 *    File: detail-big.js;
 ********* */

$(document).ready(function () {
	//var reg = new RegExp("(^|&)num=([^&]*)(&|$)","i");
	//var num = window.location.search.substr(1).match(reg)[2] - 1;
	//var slider = new Swiper('#detail-slide', {
	//	initialSlide: num,
	//	onSlideChangeStart: function (swiper) {
	//		$("#detail-slider-num").text(swiper.activeIndex + 1);
	//	}
	//});

	var slider = new Swiper('#detail-slide', {
	    onSlideChangeStart: function (swiper) {
	        $("#detail-slider-num").text(swiper.activeIndex + 1);
	    }
	});
});